# name : proc mixed repeated
# key : mixed.repeated.
# contributor: Shuguang Sun
# --
** ods select R;
proc mixed data=${1:dtin}${2: method=ml covtest nobound IC;}
class $7 $0;
model ${3:response} = ${4:covariances} / s covb ddfm=${5:$$(yas-choose-value '("BETWITHIN" "CONTAIN" "KENWARDROGER" "KENWARDROGER2" "RESIDUAL" "SATTERTHWAITE"))};
repeated ${6:group/time} / subject=${7:id(repeat)} type=${8:$$(yas-choose-value '("cs" "un" "ar(1)" "vc"))} r;
lsmeans ${9:fixed-effect} / pdiff cl;
run;
